/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package util;

import entity.Account;
import entity.BankTransaction;
import entity.CurrencyEE;
import java.math.BigDecimal;
import java.sql.Date;
import java.sql.Time;

/**
 *
 * @author Vojtisek
 */
public class StyledBankTransaction implements Comparable<StyledBankTransaction> {

    String styleClass;
    String contraAccount;
    Boolean render;
    BankTransaction bt;
    BigDecimal customerAmount;

    public BigDecimal getCustomerAmount() {
        return customerAmount;
    }

    public void setCustomerAmount(BigDecimal customerAmount) {
        this.customerAmount = customerAmount;
    }
    
    public String getContraAccount() {
        return contraAccount;
    }

    public void setContraAccount(String contraAccount) {
        this.contraAccount = contraAccount;
    }

    public Boolean getRender() {
        return render;
    }

    public void setRender(Boolean render) {
        this.render = render;
    }

    public String toString() {
        return bt.toString();
    }

    public void setTransferTime(Time TransferTime) {
        bt.setTransferTime(TransferTime);
    }

    public void setTransferDate(Date TransferDate) {
        bt.setTransferDate(TransferDate);
    }

    public void setTo(Account to) {
        bt.setTo(to);
    }

    public void setId(Integer id) {
        bt.setId(id);
    }

    public void setFrom(Account from) {
        bt.setFrom(from);
    }

    public void setCurrency(CurrencyEE currency) {
        bt.setCurrency(currency);
    }

    public void setAmountTo(BigDecimal amountTo) {
        bt.setAmountTo(amountTo);
    }

    public void setAmountFrom(BigDecimal amountFrom) {
        bt.setAmountFrom(amountFrom);
    }

    public void setAmount(BigDecimal amount) {
        bt.setAmount(amount);
    }

    public int hashCode() {
        return bt.hashCode();
    }

    public Time getTransferTime() {
        return bt.getTransferTime();
    }

    public Date getTransferDate() {
        return bt.getTransferDate();
    }

    public Account getTo() {
        return bt.getTo();
    }

    public Integer getId() {
        return bt.getId();
    }

    public Account getFrom() {
        return bt.getFrom();
    }

    public CurrencyEE getCurrency() {
        return bt.getCurrency();
    }

    public BigDecimal getAmountTo() {
        return bt.getAmountTo();
    }

    public BigDecimal getAmountFrom() {
        return bt.getAmountFrom();
    }

    public BigDecimal getAmount() {
        return bt.getAmount();
    }

    public boolean equals(Object object) {
        return bt.equals(object);
    }

    public StyledBankTransaction(BankTransaction bankTransaction) {
        bt = bankTransaction;
    }

    public String getStyleClass() {
        return styleClass;
    }

    public void setStyleClass(String style) {
        this.styleClass = style;

    }

    public BankTransaction getBt() {
        return bt;
    }

    public void setBt(BankTransaction bt) {
        this.bt = bt;
    }

    public int compareTo(StyledBankTransaction o) {
        if (this.getId() < o.getId()) {
            return 1;
        }
        if (this.getId() > o.getId()) {
            return -1;
        }
        return 0;
    }
}
